﻿
using BCCommon;
using BCCommon.Enums;
using BCData.OA.WorkSchedule.WorkScheduleChildrenTask;
using BCDto.OA.WorkSchedule.WorkScheduleChildrenTask;
using BCDto.Sim.Admin.Admin;
using BCEntity.OA.WorkSchedule.WorkScheduleChildrenTask;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.OA.WorkSchedule.WorkScheduleChildrenTask
{
	/// <summary>
	/// 工作进度表子任务
	/// </summary>
	public interface IWorkScheduleChildrenTaskService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="workScheduleChildrenTaskId">工作进度表子任务Id</param>
		bool Exists(long workScheduleChildrenTaskId);
		/// <summary>
		/// 添加工作进度表子任务
		/// </summary>
		/// <param name="requestDto">工作进度表子任务信息</param>
		/// <param name="adminDto"></param>
		WorkScheduleChildrenTaskDto Add(WorkScheduleChildrenTaskRequestDto requestDto, AdminDto adminDto);
		/// <summary>
		/// 更新工作进度表子任务
		/// </summary>
		/// <param name="putDto">工作进度表子任务信息</param>
		/// <param name="adminDto"></param>
		WorkScheduleChildrenTaskDto Update(WorkScheduleChildrenTaskPutDto putDto, AdminDto adminDto);
		/// <summary>
		/// 删除工作进度表子任务
		/// </summary>
		/// <param name="workScheduleChildrenTaskId">工作进度表子任务Id</param>
		bool Delete(long workScheduleChildrenTaskId);
		/// <summary>
		/// 获取工作进度表子任务
		/// </summary>
		/// <param name="workScheduleChildrenTaskId">工作进度表子任务Id</param>
		WorkScheduleChildrenTaskDto Get(long workScheduleChildrenTaskId);
		/// <summary>
		/// 获取工作进度表子任务列表
		/// </summary>
		/// <param name="workScheduleId">工作进度表Id</param>
		IEnumerable<WorkScheduleChildrenTaskDto> GetList(long workScheduleId);
		/// <summary>
		/// 获取工作进度表子任务分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">工作进度表子任务每页数据条数</param>
		PageableList<WorkScheduleChildrenTaskDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}